package com.ww.microrpc.executer.impl;

import com.ww.microrpc.executer.MethodExecutors;
import com.ww.microrpc.netty.protocol.RequestMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ResponseMethodExecutors implements MethodExecutors {
    private static final Logger logger = LoggerFactory.getLogger(ResponseMethodExecutors.class);

    @Override
    public Object invoke(RequestMessage request) {
        logger.info("client send message: {}", request == null ? "null" : request.toString());
        assert request != null;
        return "logging method executor: " + request;
    }
}
